<form name="frmAddMember" id="frmAddMember" method="post">
    <table cellpadding="0" cellspacing="0" width="100%" class="table-form-post">
        <col width="30%">
        <col width="70%">
        <thead>
        <th style="background: #000099">
            Thông tin chung
        </th>
        <th style="background: #000099" colspan="3">
            Phân quyền
        </th>
        </thead>
        <tr>
            <td>
                Tên đăng nhập
            </td>
            <td>
                <input class="w250p" type="text" id="member_login_name" name="member_login_name" onchange="AdminController.checkExistMemember();"><span id="member_login_name_error"></span>
                <div id="message_login_name_error"></div>
            </td>

        </tr>
        <tr>
            <td>
                Họ và tên
            </td>
            <td>
                <input class="w250p" type="text" id="member_full_name" name="member_full_name" onchange="Common.checkInputValue(this);"><span id="member_full_name_error"></span>
            </td>

        </tr>
        <tr>
            <td>
                Email
            </td>
            <td>
                <input class="w250p" type="text" id="member_mail" name="member_mail" onchange="Common.checkEmail(this);"><span id="member_mail_error"></span>
            </td>

        </tr>
        <tr>
            <td>
                Điện thoại
            </td>
            <td>
                <input class="w250p" type="text" id="member_phone_number" name="member_phone_number" onchange="Common.checkPhoneNumber(this);"><span id="member_phone_number_error"></span>
            </td>

        </tr>
        <tr>
            <td>
                Địa chỉ
            </td>
            <td>
                <input class="w250p" type="text" id="member_address" name="member_address"><span id="member_address_error"></span>
            </td>

        </tr>
        <tr>
            <td>
                Nick kinh doanh
            </td>
            <td>
                <input class="w250p" type="text" id="member_yahoo" name="member_yahoo" ><span id="member_yahoo_error"></span>
            </td>

        </tr>
        <tr>
            <td>
                Mật khẩu nick kinh doanh
            </td>
            <td>
                <input class="w250p" type="text" id="member_yahoo_pass" name="member_yahoo_pass"><span id="member_yahoo_pass_error"></span>
            </td>

        </tr>
        <tr>
            <td>
                Skype
            </td>
            <td>
                <input class="w250p" type="text" id="member_skype" name="member_skype"><span id="member_skype_error"></span>
            </td>
        </tr>
        <tr>
            <td>
                Mật khẩu
            </td>
            <td>
                <input class="w250p" type="password" id="member_password" name="member_password" onchange="Common.checkInputValue(this);"><span id="member_password_error"></span>
            </td>

        </tr>
        <tr>
            <td>
                Nhập lại mật khẩu
            </td>
            <td>
                <input class="w250p" type="password" id="member_password_retype" name="member_password_retype" onchange="Common.checkRetypePassword('member_password', 'member_password_retype');"><span id="member_password_retype_error"></span>
            </td>

        </tr>
        <tr>
            <td>
                Nhân viên
            </td>
            <td>
                <select name="member_is_kd" id="member_is_kd" class="w150p">
                    <option value="0">Loại nhân viên</option>
                    <option value="1">Kinh doanh</option>
                    <option value="2">Kỹ thuật</option>
                </select>
            </td>
        </tr>

    </table>

    <table cellpadding="0" cellspacing="0" width="100%" class="table-form-post">
        <tr>
            <td>
                Sản phẩm
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_1"><input type="checkbox" id="permission_1" name="member_permission_product[]" value="1">Thêm</label>
                </div>

            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_2"><input type="checkbox" id="permission_2" name="member_permission_product[]" value="2">Sủa</label>
                </div>
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_3"><input type="checkbox" id="permission_3" name="member_permission_product[]" value="3">Xóa</label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Danh mục sản phẩm
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_4"><input type="checkbox" id="permission_4" name="member_permission_product_category[]" value="1">Thêm</label>
                </div>

            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_5"><input type="checkbox" id="permission_5" name="member_permission_product_category[]" value="2">Sủa</label>
                </div>
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_6"><input type="checkbox" id="permission_6" name="member_permission_product_category[]" value="3">Xóa</label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Hãng sản xuất
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_16"><input type="checkbox" id="permission_16" name="member_permission_product_maker[]" value="1">Thêm</label>
                </div>

            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_17"><input type="checkbox" id="permission_17" name="member_permission_product_maker[]" value="2">Sủa</label>
                </div>
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_18"><input type="checkbox" id="permission_18" name="member_permission_product_maker[]" value="3">Xóa</label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Thông số kỹ thuật
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_19"><input type="checkbox" id="permission_19" name="member_permission_product_specs[]" value="1">Thêm</label>
                </div>

            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_20"><input type="checkbox" id="permission_20" name="member_permission_product_specs[]" value="2">Sủa</label>
                </div>
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_21"><input type="checkbox" id="permission_21" name="member_permission_product_specs[]" value="3">Xóa</label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Báo giá
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_22"><input type="checkbox" id="permission_22" name="member_permission_product_price[]" value="1">Thêm</label>
                </div>

            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_23"><input type="checkbox" id="permission_23" name="member_permission_product_price[]" value="2">Sủa</label>
                </div>
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_24"><input type="checkbox" id="permission_24" name="member_permission_product_price[]" value="3">Xóa</label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Tin tức
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_7"><input type="checkbox" id="permission_7" name="member_permission_news[]" value="1">Thêm</label>
                </div>

            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_8"><input type="checkbox" id="permission_8" name="member_permission_news[]" value="2">Sủa</label>
                </div>
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_9"><input type="checkbox" id="permission_9" name="member_permission_news[]" value="3">Xóa</label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Danh mục tin tức
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_10"><input type="checkbox" id="permission_10" name="member_permission_news_category[]" value="1">Thêm</label>
                </div>

            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_11"><input type="checkbox" id="permission_11" name="member_permission_news_category[]" value="2">Sủa</label>
                </div>
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_12"><input type="checkbox" id="permission_12" name="member_permission_news_category[]" value="3">Xóa</label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Quản lý đơn hàng
            </td>
            <td colspan="2">
                <div>
                    <label class="cpointer" for="permission_13"><input type="checkbox" id="permission_13" name="member_permission_orders[]" value="1">Xử lý đơn hàng</label>
                </div>
            </td>
            <td>
                <div>
                    <label class="cpointer" for="permission_14"><input type="checkbox" id="permission_14" name="member_permission_orders[]" value="2">Xóa đơn hàng</label>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                Thao tác với dữ liệu
            </td>
            <td colspan="2">
                <div>
                    <label class="cpointer" for="permission_15"><input type="checkbox" id="permission_15" name="member_permission_data" value="1">Được phép thao tác với dữ liệu của thành viên khác</label>
                </div>
            </td>
        </tr>
    </table>

    <table cellpadding="0" cellspacing="0" width="100%">
        <col width="60%">
        <col width="40%">
        <tr>
            <td valign="top">
                <div id="per_product_category"></div>
            </td>
            <td valign="top">
                <div id="per_news_category"></div>
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td colspan="2">
                <input type="hidden" name="member_id" id="member_id">
                <input type="button" name="submitAddMember" id="submitAddMember" class="cpointer submit">
                <input type="button" name="cancelAddMember" id="cancelAddMember" class="cpointer submit" value="Hủy bỏ" onclick="AdminController.cancelAddMember();">
            </td>
        </tr>
    </table>
</form>